package supermarket;

public class Goods {
    private String goodsName;
    private double goodsPrice;
    private int goodsQuantity;
    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }
    public void setGoodsPrice(double goodsPrice) {
        this.goodsPrice = goodsPrice;
    }
    public void setGoodsQuantity(int goodsQuantity) {
        this.goodsQuantity = goodsQuantity;
    }
    public String getGoodsName() {
        return goodsName;
    }

    public double getGoodsPrice() {
        return goodsPrice;
    }
    public int getGoodsQuantity() {
        return goodsQuantity;
    }

    public double getGoodsSubtotal() {
        return goodsPrice * goodsQuantity;
    }

}
